﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yugi_Gui.Animation
{
    internal class SpriteSchedue : ISchedue
    {

        private Yugi_Gui.SequenceImage mainWork;

        public SpriteSchedue(Yugi_Gui.SequenceImage mainWork)
        {
            this.mainWork = mainWork;
        }
        #region ISchedue Members

        public void DoWork(Action complete)
        {

            if (mainWork != null)
                mainWork.Begin(complete);

            
        }

        #endregion
    }
}
